#ifndef _ManActiveBuzzer_H
#define _ManActiveBuzzer_H
#include "stdint.h"



class ManActiveBuzzer
{
public:
    static void  (*digitalWrite)(uint8_t val) ;
    ManActiveBuzzer();
    virtual void setMode(uint8_t mode);
    //10ms
    virtual void tick();
protected:
    //响模式 0:关闭  1:滴  2:滴滴
    uint8_t   m_mode;
    bool       m_v;
    //tick周期
    uint8_t   tickPeriod;
    //响计数
    uint8_t   sound_ture;
    //不响计数
    uint8_t   sound_false;
    virtual void setPort(bool v);
};


#endif
